package com.whmskj.xjlhsc.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.whmskj.xjlhbc.core.AjaxResult;
import com.whmskj.xjlhbc.core.Page;
import com.whmskj.xjlhsc.controller.fo.GwjFo;
import com.whmskj.xjlhsc.controller.vo.DbcwVo;
import com.whmskj.xjlhsc.entity.Sb02EquipmentCounterAccount;
import com.whmskj.xjlhsc.service.GwjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 工位机
 */
@SaIgnore
@RestController
@RequestMapping("/api/gwj")
public class GwjController {

    @Autowired
    private GwjService service;


    //排班
    @GetMapping("/pb")
    public AjaxResult gwjPb(GwjFo param) {
        List<Sb02EquipmentCounterAccount> result = service.gwjPb(param);
        return Page.getDataTable(result);
    }
    //当班车位
    @GetMapping("/dbcw")
    public AjaxResult gwjDbcw(GwjFo param) {
        List<DbcwVo> result = service.gwjDbcw(param);
        return Page.getDataTable(result);
    }

}
